package net.lanelife.casino.cms.web.controller;

import net.lanelife.casino.caipiao.dto.admin.TransferRecordDTO;
import net.lanelife.casino.caipiao.dto.admin.TransferRecordTable;
import net.lanelife.casino.caipiao.entity.TransferRecord;
import net.lanelife.casino.caipiao.service.api.ITransferRecordService;
import net.lanelife.casino.cms.web.controller.support.CRUDController;
import net.lanelife.casino.common.dto.support.GenericDTO;
import net.lanelife.casino.common.service.support.IGenericService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping(value = TransferRecordController.PATH)
public class TransferRecordController extends CRUDController<TransferRecord, Integer, TransferRecordDTO, GenericDTO<Integer>, GenericDTO<Integer>, TransferRecordTable<TransferRecordDTO>> {
	
	public static final String PATH = "/transfer-record";
	
	public TransferRecordController() {
		super(PATH);
	}

	@Autowired
	private ITransferRecordService transferRecordService;
	
	@Override
	protected IGenericService<TransferRecord, Integer> getService() {
		return transferRecordService;
	}
	

}
